{template "header.html"}
<script src="{MEMBER_PATH}statics/js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
/**
 * 初始化flash
 */
function initflash(){
    var url = $("#invite_url").val();
    var flashvars = {
        content: encodeURIComponent(url),
        uri: '{MEMBER_PATH}statics/js/copyurl.jpg'
    };
    var params = {
        wmode: "transparent",
        allowScriptAccess: "always"
    };
    swfobject.embedSWF("{MEMBER_PATH}statics/js/clipboard.swf", "forLoadSwf", "120", "35", "9.0.0", null, flashvars, params);
}
/**
 * copy成功
 */
function copySuccess(){
    dr_tips('复制成功', 3, 1);
    $("#invite_url").select();
}

</script>
<div class="content clearfix">

	{template "left.html"}
    
    <div class="article">
        <div class="message message_info">您目前的身份是：{$member.group.name}，拥有{SITE_SCORE}：{$member.score}</div>

        <div class="section">
            <div class="main invite_main">
                <div class="round part_d">
                    <h3>好友邀请</h3>
                    <strong>
                        您使用的网站链接来邀请好友注册，注册之后将自动关注您，并奖励{SITE_SCORE}{$member_rule.invite_score}、{SITE_EXPERIENCE}{$member_rule.invite_experience}。
                    </strong>
                    <input class="input_text" id="invite_url" type="text" value="{$invite_url}" />
                    <object type="application/x-shockwave-flash" data="{MEMBER_PATH}statics/js/clipboard.swf" width="120" height="35" id="forLoadSwf" style="visibility: visible;"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always">
                        <param name="flashvars" value="{urlencode($invite_url)}&amp;uri={MEMBER_PATH}statics/js/copyurl.jpg"></object>
                    <script type="text/javascript">initflash();</script>
                    {if $invite}
                    <div style="clear:both">
                        我是由<font color="blue"> {$invite} </font>邀请注册。
                    </div>
                    {/if}
                </div>
            </div>
        </div>
        <div class="section">
            <div class="title"><strong>登录记录</strong></div>
            <div class="main dr_table">
                <table style="table-layout:fixed;">
                    <thead>
                    <tr>
                        <th style="width:120px;" class="algin_l">登录时间</th>
                        <th style="width:150px;" class="algin_l">登录Ip</th>
                        <th class="algin_l">详情</th>
                    </tr>
                    </thead>
                    <tbody>
                    {list action=sql sql='select * from @#member_login where uid=$uid order by logintime desc limit 5'}
                    <tr>
                        <td class="algin_l">{dr_date($t.logintime, NULL, 'red')}</td>
                        <td class="algin_l"><a href="http://www.baidu.com/baidu?wd={$t.loginip}" target="_blank">{if $t.oauthid}【{$t.oauthid}】{/if}{$t.loginip}</a></td>
                        <td class="algin_l">{dr_strcut($t.useragent, 60)}</td>
                    </tr>
                    {/list}
                    </tbody>
                </table>
            </div>
        </div>

    </div>
</div>

{template "footer.html"}